/**
 * 文章请求的接口模块
 */
import request from '@/utils/request'
/**
 * 请求获取文章列表数据
 */
export const getArticles = params => {
  return request({
    method: 'GET',
    url: '/app/v1_1/articles',
    params
  })
}
/**
 * 通过文章id获取详情数据
 * @param {*} articleId 文章id
 */
export const getArticleById = articleId => {
  return request({
    url: '/app/v1_0/articles/' + articleId,
    method: 'GET'
  })
}
